package com.linkwedo.saas.users;

import java.util.Map;

import com.linkwedo.saas.domain.member.User;
import com.linkwedo.saas.support.BaseAction;
import com.linkwedo.saas.support.Constants;

public class IndexAction extends BaseAction{
	private static final long serialVersionUID = 8240357690310642383L;

	@Override
	public String execute() {
		User user = null;
		Map<String, Object> map = getSession();
		synchronized (map) {
			user = (User) map.get(Constants.USER);
			user = getUserService().getUser(user);
			map.put(Constants.USER, user);
		}
		return SUCCESS;
	}
	
	private UserService userService;

	public UserService getUserService() {
		return userService;
	}
	public void setUserService(UserService userService) {
		this.userService = userService;
	}
}
